package com.wzy.media.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


/**
 * @Author wzy
 * @Date 2024/2/2 13:22
 * @description: 远程调用content-api接口
 */
@FeignClient(value = "content-api",fallbackFactory = ContentServiceClientFallbackFactory.class)
public interface ContentFeignClient {
    @GetMapping("/content/media/{mediaId}")
    List<TeachplanMedia> getTeachPlanByMediaId(@PathVariable(value = "mediaId") String mediaId);
}
